UPDATE c1_user_department SET END_DATE = NOW(), DATA_STATE_CODE = '0' WHERE INSTR(:userDepartmentIds, USER_DEPARTMENT_ID) > 0